package com.alpha.eceasy.mall.api.vo;

import com.alpha.eceasy.mall.api.entity.MallCommodity;
import com.alpha.eceasy.mall.api.entity.MallCommoditySpecification;
import com.alpha.eceasy.mall.api.entity.MallShoppingCart;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.math.BigDecimal;

/**
 * @author huangpengfei
 */
@EqualsAndHashCode(callSuper = true)
@Data
public class MallShoppingCartVO extends MallShoppingCart {

	@Schema(description = "商品主表名称")
	private String commodityName;

	@Schema(description =  "图标/封面图")
	private String commodityIcon;

	@Schema(description =  "商品价格")
	private BigDecimal sellPrice;

	@Schema(description =  "类型，3普通商品,4活动包,5奖励商品")
	private Integer type;

	@Schema(description =  "商品规格")
	private MallCommoditySpecification commoditySpecification;

	@Schema(description =  "商品")
	private MallCommodity commodity;
}
